package com.lu.statistics.entity.front.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Getter
@Setter
@ApiModel(value = "编辑用户信息")
public class UpdateUserRequest {

    @ApiModelProperty(value = "主键id", required = true, name = "id", dataType = "int")
    public Integer id;
    @ApiModelProperty(value = "用户昵称", required = false, name = "nickname", dataType = "string")
    public String nickname;
    @ApiModelProperty(value = "生日", required = false, name = "birthday", dataType = "string")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    public Date birthday;
    @ApiModelProperty(value = "生日", required = false, name = "sex", dataType = "string")
    public String sex;
}
